package com.csii.security.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 钉钉
 * @Auther: ian
 */
@Controller
public class DingTalkLoginController {
    @Value("${server.baseUrl}")
    private String baseUrl;

    /**
     * 前往手机验证码登录页
     * @return
     */
    @GetMapping("/ding-talk/page")
    public ModelAndView  toMobilePage(ModelAndView modelAndView) {
        modelAndView.addObject("baseUrl",baseUrl);
        modelAndView.setViewName("login-dtalk");
        return modelAndView; // templates/login-dtalk.html
    }


}
